.class public Les/sd0;
.super Les/wd0;
.source "DiskShare.java"


# direct methods
.method public constructor <init>(Lcom/hierynomus/smbj/common/c;Les/xd0;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2}, Les/wd0;-><init>(Lcom/hierynomus/smbj/common/c;Les/xd0;)V

    return-void
.end method

.method private varargs a(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    .line 22
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0, p1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const/4 p1, 0x0

    .line 23
    :goto_0
    array-length v1, p2

    if-ge p1, v1, :cond_0

    const/16 v1, 0x5c

    .line 24
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    .line 25
    aget-object v1, p2, p1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    add-int/lit8 p1, p1, 0x1

    goto :goto_0

    .line 26
    :cond_0
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private a(Ljava/lang/String;Lcom/hierynomus/smbj/smb2/messages/b;)V
    .locals 19
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/transport/TransportException;,
            Lcom/hierynomus/smbj/common/SMBApiException;
        }
    .end annotation

    move-object/from16 v1, p0

    move-object/from16 v2, p1

    const-string v3, "Close failed for "

    .line 27
    iget-object v0, v1, Les/wd0;->a:Les/xd0;

    invoke-virtual {v0}, Les/xd0;->a()Les/qd0;

    move-result-object v4

    .line 28
    invoke-virtual {v4}, Les/qd0;->a()Lcom/hierynomus/smbj/connection/a;

    move-result-object v5

    move-object/from16 v0, p2

    .line 29
    invoke-virtual {v5, v0}, Lcom/hierynomus/smbj/connection/a;->b(Lcom/hierynomus/smbj/smb2/d;)Ljava/util/concurrent/Future;

    move-result-object v0

    .line 30
    sget-object v6, Lcom/hierynomus/smbj/transport/TransportException;->Wrapper:Les/fd0;

    invoke-static {v0, v6}, Les/gd0;->a(Ljava/util/concurrent/Future;Les/fd0;)Ljava/lang/Object;

    move-result-object v0

    move-object v6, v0

    check-cast v6, Lcom/hierynomus/smbj/smb2/messages/c;

    .line 31
    invoke-virtual {v6}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v0

    sget-object v7, Lcom/hierynomus/mserref/NtStatus;->STATUS_SUCCESS:Lcom/hierynomus/mserref/NtStatus;

    if-ne v0, v7, :cond_3

    .line 32
    invoke-virtual {v6}, Lcom/hierynomus/smbj/smb2/messages/c;->c()Lcom/hierynomus/smbj/smb2/a;

    move-result-object v7

    const/4 v0, 0x1

    .line 33
    :try_start_0
    invoke-static {v0}, Les/bd0;->a(Z)[B

    move-result-object v18

    .line 34
    new-instance v0, Lcom/hierynomus/smbj/smb2/messages/SMB2SetInfoRequest;

    .line 35
    invoke-virtual {v5}, Lcom/hierynomus/smbj/connection/a;->i()Lcom/hierynomus/smbj/smb2/SMB2Dialect;

    move-result-object v9

    invoke-virtual {v4}, Les/qd0;->b()J

    move-result-wide v10

    iget-object v8, v1, Les/wd0;->a:Les/xd0;

    invoke-virtual {v8}, Les/xd0;->b()J

    move-result-wide v12

    sget-object v14, Lcom/hierynomus/smbj/smb2/messages/SMB2SetInfoRequest$SMB2InfoType;->SMB2_0_INFO_FILE:Lcom/hierynomus/smbj/smb2/messages/SMB2SetInfoRequest$SMB2InfoType;

    sget-object v16, Lcom/hierynomus/msfscc/FileInformationClass;->FileDispositionInformation:Lcom/hierynomus/msfscc/FileInformationClass;

    const/16 v17, 0x0

    move-object v8, v0

    move-object v15, v7

    invoke-direct/range {v8 .. v18}, Lcom/hierynomus/smbj/smb2/messages/SMB2SetInfoRequest;-><init>(Lcom/hierynomus/smbj/smb2/SMB2Dialect;JJLcom/hierynomus/smbj/smb2/messages/SMB2SetInfoRequest$SMB2InfoType;Lcom/hierynomus/smbj/smb2/a;Lcom/hierynomus/msfscc/FileInformationClass;Lcom/hierynomus/msdtyp/SecurityInformation;[B)V

    .line 36
    invoke-virtual {v5, v0}, Lcom/hierynomus/smbj/connection/a;->b(Lcom/hierynomus/smbj/smb2/d;)Ljava/util/concurrent/Future;

    move-result-object v0

    .line 37
    sget-object v8, Lcom/hierynomus/smbj/transport/TransportException;->Wrapper:Les/fd0;

    invoke-static {v0, v8}, Les/gd0;->a(Ljava/util/concurrent/Future;Les/fd0;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hierynomus/smbj/smb2/messages/o;

    .line 38
    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v0

    sget-object v8, Lcom/hierynomus/mserref/NtStatus;->STATUS_SUCCESS:Lcom/hierynomus/mserref/NtStatus;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-ne v0, v8, :cond_1

    .line 39
    new-instance v0, Lcom/hierynomus/smbj/smb2/messages/a;

    invoke-virtual {v5}, Lcom/hierynomus/smbj/connection/a;->i()Lcom/hierynomus/smbj/smb2/SMB2Dialect;

    move-result-object v9

    .line 40
    invoke-virtual {v4}, Les/qd0;->b()J

    move-result-wide v10

    iget-object v4, v1, Les/wd0;->a:Les/xd0;

    invoke-virtual {v4}, Les/xd0;->b()J

    move-result-wide v12

    move-object v8, v0

    move-object v14, v7

    invoke-direct/range {v8 .. v14}, Lcom/hierynomus/smbj/smb2/messages/a;-><init>(Lcom/hierynomus/smbj/smb2/SMB2Dialect;JJLcom/hierynomus/smbj/smb2/a;)V

    .line 41
    invoke-virtual {v5, v0}, Lcom/hierynomus/smbj/connection/a;->b(Lcom/hierynomus/smbj/smb2/d;)Ljava/util/concurrent/Future;

    move-result-object v0

    .line 42
    sget-object v4, Lcom/hierynomus/smbj/transport/TransportException;->Wrapper:Les/fd0;

    invoke-static {v0, v4}, Les/gd0;->a(Ljava/util/concurrent/Future;Les/fd0;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hierynomus/smbj/smb2/messages/a;

    .line 43
    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v0

    sget-object v4, Lcom/hierynomus/mserref/NtStatus;->STATUS_SUCCESS:Lcom/hierynomus/mserref/NtStatus;

    if-ne v0, v4, :cond_0

    return-void

    .line 44
    :cond_0
    new-instance v0, Lcom/hierynomus/smbj/common/SMBApiException;

    invoke-virtual {v6}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v4

    invoke-virtual {v4}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v4

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v4, v2}, Lcom/hierynomus/smbj/common/SMBApiException;-><init>(Lcom/hierynomus/mserref/NtStatus;Ljava/lang/String;)V

    throw v0

    .line 45
    :cond_1
    :try_start_1
    new-instance v0, Lcom/hierynomus/smbj/common/SMBApiException;

    invoke-virtual {v6}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v8

    invoke-virtual {v8}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v8

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const-string v10, "SetInfo failed for "

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-direct {v0, v8, v9}, Lcom/hierynomus/smbj/common/SMBApiException;-><init>(Lcom/hierynomus/mserref/NtStatus;Ljava/lang/String;)V

    throw v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :catchall_0
    move-exception v0

    .line 46
    new-instance v15, Lcom/hierynomus/smbj/smb2/messages/a;

    invoke-virtual {v5}, Lcom/hierynomus/smbj/connection/a;->i()Lcom/hierynomus/smbj/smb2/SMB2Dialect;

    move-result-object v9

    .line 47
    invoke-virtual {v4}, Les/qd0;->b()J

    move-result-wide v10

    iget-object v4, v1, Les/wd0;->a:Les/xd0;

    invoke-virtual {v4}, Les/xd0;->b()J

    move-result-wide v12

    move-object v8, v15

    move-object v14, v7

    invoke-direct/range {v8 .. v14}, Lcom/hierynomus/smbj/smb2/messages/a;-><init>(Lcom/hierynomus/smbj/smb2/SMB2Dialect;JJLcom/hierynomus/smbj/smb2/a;)V

    .line 48
    invoke-virtual {v5, v15}, Lcom/hierynomus/smbj/connection/a;->b(Lcom/hierynomus/smbj/smb2/d;)Ljava/util/concurrent/Future;

    move-result-object v4

    .line 49
    sget-object v5, Lcom/hierynomus/smbj/transport/TransportException;->Wrapper:Les/fd0;

    invoke-static {v4, v5}, Les/gd0;->a(Ljava/util/concurrent/Future;Les/fd0;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/hierynomus/smbj/smb2/messages/a;

    .line 50
    invoke-virtual {v4}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v4

    invoke-virtual {v4}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v4

    sget-object v5, Lcom/hierynomus/mserref/NtStatus;->STATUS_SUCCESS:Lcom/hierynomus/mserref/NtStatus;

    if-eq v4, v5, :cond_2

    .line 51
    new-instance v0, Lcom/hierynomus/smbj/common/SMBApiException;

    invoke-virtual {v6}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v4

    invoke-virtual {v4}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v4

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v4, v2}, Lcom/hierynomus/smbj/common/SMBApiException;-><init>(Lcom/hierynomus/mserref/NtStatus;Ljava/lang/String;)V

    throw v0

    .line 52
    :cond_2
    throw v0

    .line 53
    :cond_3
    new-instance v0, Lcom/hierynomus/smbj/common/SMBApiException;

    invoke-virtual {v6}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v3

    invoke-virtual {v3}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v3

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "Create failed for "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v3, v2}, Lcom/hierynomus/smbj/common/SMBApiException;-><init>(Lcom/hierynomus/mserref/NtStatus;Ljava/lang/String;)V

    throw v0
.end method

.method private a(Ljava/lang/String;Ljava/util/EnumSet;)Z
    .locals 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/smbj/smb2/SMB2CreateOptions;",
            ">;)Z"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/transport/TransportException;,
            Lcom/hierynomus/smbj/common/SMBApiException;
        }
    .end annotation

    .line 54
    :try_start_0
    sget-object v0, Lcom/hierynomus/msdtyp/AccessMask;->FILE_READ_ATTRIBUTES:Lcom/hierynomus/msdtyp/AccessMask;

    .line 55
    invoke-static {v0}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v0

    invoke-static {v0}, Les/ed0$a;->a(Ljava/util/Collection;)J

    move-result-wide v3

    sget-object v0, Lcom/hierynomus/msfscc/FileAttributes;->FILE_ATTRIBUTE_DIRECTORY:Lcom/hierynomus/msfscc/FileAttributes;

    .line 56
    invoke-static {v0}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v5

    sget-object v0, Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;->FILE_SHARE_DELETE:Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;

    sget-object v1, Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;->FILE_SHARE_WRITE:Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;

    sget-object v2, Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;->FILE_SHARE_READ:Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;

    .line 57
    invoke-static {v0, v1, v2}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;Ljava/lang/Enum;Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v6

    sget-object v7, Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;->FILE_OPEN:Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;

    move-object v1, p0

    move-object v2, p1

    move-object v8, p2

    .line 58
    invoke-virtual/range {v1 .. v8}, Les/wd0;->a(Ljava/lang/String;JLjava/util/EnumSet;Ljava/util/EnumSet;Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;Ljava/util/EnumSet;)Lcom/hierynomus/smbj/smb2/a;

    move-result-object p1
    :try_end_0
    .catch Lcom/hierynomus/smbj/common/SMBApiException; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/4 p2, 0x1

    if-eqz p1, :cond_0

    .line 59
    :try_start_1
    invoke-virtual {p0, p1}, Les/wd0;->a(Lcom/hierynomus/smbj/smb2/a;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    :cond_0
    return p2

    :catchall_0
    move-exception p1

    goto :goto_1

    :catch_1
    move-exception p1

    .line 60
    :try_start_2
    invoke-virtual {p1}, Lcom/hierynomus/smbj/common/SMBApiException;->getStatus()Lcom/hierynomus/mserref/NtStatus;

    move-result-object p2

    sget-object v0, Lcom/hierynomus/mserref/NtStatus;->STATUS_OBJECT_NAME_NOT_FOUND:Lcom/hierynomus/mserref/NtStatus;

    if-eq p2, v0, :cond_2

    invoke-virtual {p1}, Lcom/hierynomus/smbj/common/SMBApiException;->getStatus()Lcom/hierynomus/mserref/NtStatus;

    move-result-object p2

    sget-object v0, Lcom/hierynomus/mserref/NtStatus;->STATUS_OBJECT_PATH_NOT_FOUND:Lcom/hierynomus/mserref/NtStatus;

    if-ne p2, v0, :cond_1

    goto :goto_0

    .line 61
    :cond_1
    throw p1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :cond_2
    :goto_0
    const/4 p1, 0x0

    return p1

    .line 62
    :goto_1
    throw p1
.end method

.method private a(Lcom/hierynomus/smbj/smb2/a;Lcom/hierynomus/smbj/smb2/messages/SMB2QueryInfoRequest$SMB2QueryInfoType;Ljava/util/EnumSet;Lcom/hierynomus/msfscc/FileInformationClass;)[B
    .locals 16
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/hierynomus/smbj/smb2/a;",
            "Lcom/hierynomus/smbj/smb2/messages/SMB2QueryInfoRequest$SMB2QueryInfoType;",
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/msdtyp/SecurityInformation;",
            ">;",
            "Lcom/hierynomus/msfscc/FileInformationClass;",
            ")[B"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/common/SMBApiException;,
            Lcom/hierynomus/smbj/transport/TransportException;
        }
    .end annotation

    move-object/from16 v0, p0

    .line 71
    iget-object v1, v0, Les/wd0;->a:Les/xd0;

    invoke-virtual {v1}, Les/xd0;->a()Les/qd0;

    move-result-object v1

    .line 72
    invoke-virtual {v1}, Les/qd0;->a()Lcom/hierynomus/smbj/connection/a;

    move-result-object v2

    .line 73
    new-instance v15, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryInfoRequest;

    .line 74
    invoke-virtual {v2}, Lcom/hierynomus/smbj/connection/a;->i()Lcom/hierynomus/smbj/smb2/SMB2Dialect;

    move-result-object v4

    invoke-virtual {v1}, Les/qd0;->b()J

    move-result-wide v5

    iget-object v1, v0, Les/wd0;->a:Les/xd0;

    invoke-virtual {v1}, Les/xd0;->b()J

    move-result-wide v7

    const/4 v12, 0x0

    const/4 v13, 0x0

    move-object v3, v15

    move-object/from16 v9, p1

    move-object/from16 v10, p2

    move-object/from16 v11, p4

    move-object/from16 v14, p3

    invoke-direct/range {v3 .. v14}, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryInfoRequest;-><init>(Lcom/hierynomus/smbj/smb2/SMB2Dialect;JJLcom/hierynomus/smbj/smb2/a;Lcom/hierynomus/smbj/smb2/messages/SMB2QueryInfoRequest$SMB2QueryInfoType;Lcom/hierynomus/msfscc/FileInformationClass;Lcom/hierynomus/msfscc/FileSysemInformationClass;[BLjava/util/EnumSet;)V

    .line 75
    invoke-virtual {v2, v15}, Lcom/hierynomus/smbj/connection/a;->b(Lcom/hierynomus/smbj/smb2/d;)Ljava/util/concurrent/Future;

    move-result-object v1

    .line 76
    sget-object v2, Lcom/hierynomus/smbj/transport/TransportException;->Wrapper:Les/fd0;

    invoke-static {v1, v2}, Les/gd0;->a(Ljava/util/concurrent/Future;Les/fd0;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/hierynomus/smbj/smb2/messages/k;

    .line 77
    invoke-virtual {v1}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v2

    invoke-virtual {v2}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v2

    sget-object v3, Lcom/hierynomus/mserref/NtStatus;->STATUS_SUCCESS:Lcom/hierynomus/mserref/NtStatus;

    if-ne v2, v3, :cond_0

    .line 78
    invoke-virtual {v1}, Lcom/hierynomus/smbj/smb2/messages/k;->c()[B

    move-result-object v1

    return-object v1

    .line 79
    :cond_0
    new-instance v2, Lcom/hierynomus/smbj/common/SMBApiException;

    invoke-virtual {v1}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v1

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "QUERY_INFO failed for "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-object/from16 v4, p1

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v1, v3}, Lcom/hierynomus/smbj/common/SMBApiException;-><init>(Lcom/hierynomus/mserref/NtStatus;Ljava/lang/String;)V

    throw v2
.end method

.method private a(Ljava/lang/String;Lcom/hierynomus/smbj/smb2/messages/SMB2QueryInfoRequest$SMB2QueryInfoType;Ljava/util/EnumSet;Lcom/hierynomus/msfscc/FileInformationClass;)[B
    .locals 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Lcom/hierynomus/smbj/smb2/messages/SMB2QueryInfoRequest$SMB2QueryInfoType;",
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/msdtyp/SecurityInformation;",
            ">;",
            "Lcom/hierynomus/msfscc/FileInformationClass;",
            ")[B"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/common/SMBApiException;,
            Lcom/hierynomus/smbj/transport/TransportException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 63
    :try_start_0
    sget-object v1, Lcom/hierynomus/msdtyp/AccessMask;->GENERIC_READ:Lcom/hierynomus/msdtyp/AccessMask;

    .line 64
    invoke-static {v1}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v1

    invoke-static {v1}, Les/ed0$a;->a(Ljava/util/Collection;)J

    move-result-wide v4

    sget-object v1, Lcom/hierynomus/msfscc/FileAttributes;->FILE_ATTRIBUTE_NORMAL:Lcom/hierynomus/msfscc/FileAttributes;

    .line 65
    invoke-static {v1}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v6

    sget-object v1, Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;->FILE_SHARE_DELETE:Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;

    sget-object v2, Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;->FILE_SHARE_WRITE:Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;

    sget-object v3, Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;->FILE_SHARE_READ:Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;

    .line 66
    invoke-static {v1, v2, v3}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;Ljava/lang/Enum;Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v7

    sget-object v8, Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;->FILE_OPEN:Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;

    const/4 v9, 0x0

    move-object v2, p0

    move-object v3, p1

    .line 67
    invoke-virtual/range {v2 .. v9}, Les/wd0;->a(Ljava/lang/String;JLjava/util/EnumSet;Ljava/util/EnumSet;Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;Ljava/util/EnumSet;)Lcom/hierynomus/smbj/smb2/a;

    move-result-object v0

    .line 68
    invoke-direct {p0, v0, p2, p3, p4}, Les/sd0;->a(Lcom/hierynomus/smbj/smb2/a;Lcom/hierynomus/smbj/smb2/messages/SMB2QueryInfoRequest$SMB2QueryInfoType;Ljava/util/EnumSet;Lcom/hierynomus/msfscc/FileInformationClass;)[B

    move-result-object p1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_0

    .line 69
    :try_start_1
    invoke-virtual {p0, v0}, Les/wd0;->a(Lcom/hierynomus/smbj/smb2/a;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    :cond_0
    return-object p1

    :catchall_0
    move-exception p1

    if-eqz v0, :cond_1

    :try_start_2
    invoke-virtual {p0, v0}, Les/wd0;->a(Lcom/hierynomus/smbj/smb2/a;)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    .line 70
    :catch_1
    :cond_1
    throw p1
.end method


# virtual methods
.method public a(Ljava/lang/String;Ljava/util/EnumSet;Ljava/util/EnumSet;Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;)Les/rd0;
    .locals 15
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/msdtyp/AccessMask;",
            ">;",
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;",
            ">;",
            "Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;",
            ")",
            "Les/rd0;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/transport/TransportException;,
            Lcom/hierynomus/smbj/common/SMBApiException;
        }
    .end annotation

    .line 1
    invoke-static/range {p2 .. p2}, Les/ed0$a;->a(Ljava/util/Collection;)J

    move-result-wide v2

    sget-object v0, Lcom/hierynomus/msfscc/FileAttributes;->FILE_ATTRIBUTE_DIRECTORY:Lcom/hierynomus/msfscc/FileAttributes;

    invoke-static {v0}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v4

    sget-object v0, Lcom/hierynomus/smbj/smb2/SMB2CreateOptions;->FILE_DIRECTORY_FILE:Lcom/hierynomus/smbj/smb2/SMB2CreateOptions;

    .line 2
    invoke-static {v0}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v7

    move-object v0, p0

    move-object/from16 v1, p1

    move-object/from16 v5, p3

    move-object/from16 v6, p4

    .line 3
    invoke-virtual/range {v0 .. v7}, Les/wd0;->a(Ljava/lang/String;JLjava/util/EnumSet;Ljava/util/EnumSet;Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;Ljava/util/EnumSet;)Lcom/hierynomus/smbj/smb2/a;

    move-result-object v9

    .line 4
    new-instance v0, Les/rd0;

    move-object v1, p0

    iget-object v10, v1, Les/wd0;->a:Les/xd0;

    const/4 v12, 0x0

    move-object v8, v0

    move-object/from16 v11, p1

    move-object/from16 v13, p3

    move-object/from16 v14, p4

    invoke-direct/range {v8 .. v14}, Les/rd0;-><init>(Lcom/hierynomus/smbj/smb2/a;Les/xd0;Ljava/lang/String;Ljava/util/EnumSet;Ljava/util/EnumSet;Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;)V

    return-object v0
.end method

.method public a(Ljava/lang/String;Ljava/util/EnumSet;Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;)Les/td0;
    .locals 14
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/msdtyp/AccessMask;",
            ">;",
            "Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;",
            ")",
            "Les/td0;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/transport/TransportException;,
            Lcom/hierynomus/smbj/common/SMBApiException;
        }
    .end annotation

    .line 5
    invoke-static/range {p2 .. p2}, Les/ed0$a;->a(Ljava/util/Collection;)J

    move-result-wide v2

    sget-object v0, Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;->FILE_SHARE_READ:Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;

    .line 6
    invoke-static {v0}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v5

    sget-object v0, Lcom/hierynomus/smbj/smb2/SMB2CreateOptions;->FILE_NON_DIRECTORY_FILE:Lcom/hierynomus/smbj/smb2/SMB2CreateOptions;

    invoke-static {v0}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v7

    const/4 v4, 0x0

    move-object v0, p0

    move-object v1, p1

    move-object/from16 v6, p3

    .line 7
    invoke-virtual/range {v0 .. v7}, Les/wd0;->a(Ljava/lang/String;JLjava/util/EnumSet;Ljava/util/EnumSet;Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;Ljava/util/EnumSet;)Lcom/hierynomus/smbj/smb2/a;

    move-result-object v9

    .line 8
    new-instance v0, Les/td0;

    move-object v1, p0

    iget-object v10, v1, Les/wd0;->a:Les/xd0;

    const/4 v12, 0x0

    move-object v8, v0

    move-object v11, p1

    move-object/from16 v13, p3

    invoke-direct/range {v8 .. v13}, Les/td0;-><init>(Lcom/hierynomus/smbj/smb2/a;Les/xd0;Ljava/lang/String;Ljava/util/EnumSet;Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;)V

    return-object v0
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 24
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/transport/TransportException;,
            Lcom/hierynomus/smbj/common/SMBApiException;
        }
    .end annotation

    move-object/from16 v9, p0

    move-object/from16 v0, p1

    const/4 v10, 0x0

    .line 80
    :try_start_0
    iget-object v1, v9, Les/wd0;->a:Les/xd0;

    invoke-virtual {v1}, Les/xd0;->a()Les/qd0;

    move-result-object v11

    .line 81
    invoke-virtual {v11}, Les/qd0;->a()Lcom/hierynomus/smbj/connection/a;

    move-result-object v12

    .line 82
    sget-object v1, Lcom/hierynomus/msdtyp/AccessMask;->DELETE:Lcom/hierynomus/msdtyp/AccessMask;

    .line 83
    invoke-virtual {v1}, Lcom/hierynomus/msdtyp/AccessMask;->getValue()J

    move-result-wide v3

    const/4 v5, 0x0

    const/4 v6, 0x0

    sget-object v7, Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;->FILE_OPEN:Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;

    const/4 v8, 0x0

    move-object/from16 v1, p0

    move-object/from16 v2, p1

    .line 84
    invoke-virtual/range {v1 .. v8}, Les/wd0;->a(Ljava/lang/String;JLjava/util/EnumSet;Ljava/util/EnumSet;Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;Ljava/util/EnumSet;)Lcom/hierynomus/smbj/smb2/a;

    move-result-object v10

    .line 85
    sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;

    invoke-virtual {v1, v10}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V

    const/4 v1, 0x1

    move-object/from16 v2, p2

    .line 86
    invoke-static {v1, v2}, Les/bd0;->a(ZLjava/lang/String;)[B

    move-result-object v23

    .line 87
    new-instance v1, Lcom/hierynomus/smbj/smb2/messages/SMB2SetInfoRequest;

    .line 88
    invoke-virtual {v12}, Lcom/hierynomus/smbj/connection/a;->i()Lcom/hierynomus/smbj/smb2/SMB2Dialect;

    move-result-object v14

    invoke-virtual {v11}, Les/qd0;->b()J

    move-result-wide v15

    iget-object v2, v9, Les/wd0;->a:Les/xd0;

    invoke-virtual {v2}, Les/xd0;->b()J

    move-result-wide v17

    sget-object v19, Lcom/hierynomus/smbj/smb2/messages/SMB2SetInfoRequest$SMB2InfoType;->SMB2_0_INFO_FILE:Lcom/hierynomus/smbj/smb2/messages/SMB2SetInfoRequest$SMB2InfoType;

    sget-object v21, Lcom/hierynomus/msfscc/FileInformationClass;->FileRenameInformation:Lcom/hierynomus/msfscc/FileInformationClass;

    const/16 v22, 0x0

    move-object v13, v1

    move-object/from16 v20, v10

    invoke-direct/range {v13 .. v23}, Lcom/hierynomus/smbj/smb2/messages/SMB2SetInfoRequest;-><init>(Lcom/hierynomus/smbj/smb2/SMB2Dialect;JJLcom/hierynomus/smbj/smb2/messages/SMB2SetInfoRequest$SMB2InfoType;Lcom/hierynomus/smbj/smb2/a;Lcom/hierynomus/msfscc/FileInformationClass;Lcom/hierynomus/msdtyp/SecurityInformation;[B)V

    .line 89
    invoke-virtual {v12, v1}, Lcom/hierynomus/smbj/connection/a;->b(Lcom/hierynomus/smbj/smb2/d;)Ljava/util/concurrent/Future;

    move-result-object v1

    .line 90
    sget-object v2, Lcom/hierynomus/smbj/transport/TransportException;->Wrapper:Les/fd0;

    invoke-static {v1, v2}, Les/gd0;->a(Ljava/util/concurrent/Future;Les/fd0;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/hierynomus/smbj/smb2/messages/o;

    .line 91
    invoke-virtual {v1}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v2

    invoke-virtual {v2}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v2

    sget-object v3, Lcom/hierynomus/mserref/NtStatus;->STATUS_SUCCESS:Lcom/hierynomus/mserref/NtStatus;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-ne v2, v3, :cond_1

    if-eqz v10, :cond_0

    .line 92
    :try_start_1
    invoke-virtual {v9, v10}, Les/wd0;->a(Lcom/hierynomus/smbj/smb2/a;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    :cond_0
    return-void

    .line 93
    :cond_1
    :try_start_2
    sget-object v2, Ljava/lang/System;->err:Ljava/io/PrintStream;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v4

    invoke-virtual {v4}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v4, ", SetInfo failed for "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 94
    new-instance v2, Lcom/hierynomus/smbj/common/SMBApiException;

    invoke-virtual {v1}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v1

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "SetInfo failed for "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v2, v1, v0}, Lcom/hierynomus/smbj/common/SMBApiException;-><init>(Lcom/hierynomus/mserref/NtStatus;Ljava/lang/String;)V

    throw v2
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :catchall_0
    move-exception v0

    if-eqz v10, :cond_2

    .line 95
    :try_start_3
    invoke-virtual {v9, v10}, Les/wd0;->a(Lcom/hierynomus/smbj/smb2/a;)V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1

    .line 96
    :catch_1
    :cond_2
    throw v0
.end method

.method public a(Ljava/lang/String;Z)V
    .locals 10
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/transport/TransportException;,
            Lcom/hierynomus/smbj/common/SMBApiException;
        }
    .end annotation

    if-eqz p2, :cond_2

    .line 10
    invoke-virtual {p0, p1}, Les/sd0;->d(Ljava/lang/String;)Ljava/util/List;

    move-result-object v0

    .line 11
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/ad0;

    .line 12
    invoke-virtual {v1}, Les/ad0;->b()J

    move-result-wide v3

    sget-object v5, Lcom/hierynomus/msfscc/FileAttributes;->FILE_ATTRIBUTE_DIRECTORY:Lcom/hierynomus/msfscc/FileAttributes;

    invoke-static {v3, v4, v5}, Les/ed0$a;->a(JLes/ed0;)Z

    move-result v3

    const/4 v4, 0x1

    if-nez v3, :cond_0

    new-array v3, v4, [Ljava/lang/String;

    .line 13
    invoke-virtual {v1}, Les/ad0;->c()Ljava/lang/String;

    move-result-object v1

    aput-object v1, v3, v2

    invoke-direct {p0, p1, v3}, Les/sd0;->a(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v1}, Les/sd0;->g(Ljava/lang/String;)V

    goto :goto_0

    :cond_0
    new-array v3, v4, [Ljava/lang/String;

    .line 14
    invoke-virtual {v1}, Les/ad0;->c()Ljava/lang/String;

    move-result-object v1

    aput-object v1, v3, v2

    invoke-direct {p0, p1, v3}, Les/sd0;->a(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v1, p2}, Les/sd0;->a(Ljava/lang/String;Z)V

    goto :goto_0

    .line 15
    :cond_1
    invoke-virtual {p0, p1, v2}, Les/sd0;->a(Ljava/lang/String;Z)V

    goto :goto_1

    .line 16
    :cond_2
    iget-object v2, p0, Les/wd0;->a:Les/xd0;

    sget-object p2, Lcom/hierynomus/msdtyp/AccessMask;->DELETE:Lcom/hierynomus/msdtyp/AccessMask;

    .line 17
    invoke-virtual {p2}, Lcom/hierynomus/msdtyp/AccessMask;->getValue()J

    move-result-wide v4

    sget-object p2, Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;->FILE_SHARE_DELETE:Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;

    sget-object v0, Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;->FILE_SHARE_WRITE:Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;

    sget-object v1, Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;->FILE_SHARE_READ:Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;

    .line 18
    invoke-static {p2, v0, v1}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;Ljava/lang/Enum;Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v6

    sget-object p2, Lcom/hierynomus/msfscc/FileAttributes;->FILE_ATTRIBUTE_DIRECTORY:Lcom/hierynomus/msfscc/FileAttributes;

    .line 19
    invoke-static {p2}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v7

    sget-object v8, Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;->FILE_OPEN:Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;

    const/4 v9, 0x0

    move-object v3, p1

    .line 20
    invoke-static/range {v2 .. v9}, Les/wd0;->a(Les/xd0;Ljava/lang/String;JLjava/util/EnumSet;Ljava/util/EnumSet;Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;Ljava/util/EnumSet;)Lcom/hierynomus/smbj/smb2/messages/b;

    move-result-object p2

    .line 21
    invoke-direct {p0, p1, p2}, Les/sd0;->a(Ljava/lang/String;Lcom/hierynomus/smbj/smb2/messages/b;)V

    :goto_1
    return-void
.end method

.method public a(Ljava/lang/String;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/common/SMBApiException;,
            Lcom/hierynomus/smbj/transport/TransportException;
        }
    .end annotation

    .line 9
    sget-object v0, Lcom/hierynomus/smbj/smb2/SMB2CreateOptions;->FILE_NON_DIRECTORY_FILE:Lcom/hierynomus/smbj/smb2/SMB2CreateOptions;

    invoke-static {v0}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v0

    invoke-direct {p0, p1, v0}, Les/sd0;->a(Ljava/lang/String;Ljava/util/EnumSet;)Z

    move-result p1

    return p1
.end method

.method public b(Ljava/lang/String;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/common/SMBApiException;,
            Lcom/hierynomus/smbj/transport/TransportException;
        }
    .end annotation

    .line 1
    sget-object v0, Lcom/hierynomus/smbj/smb2/SMB2CreateOptions;->FILE_DIRECTORY_FILE:Lcom/hierynomus/smbj/smb2/SMB2CreateOptions;

    invoke-static {v0}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v0

    invoke-direct {p0, p1, v0}, Les/sd0;->a(Ljava/lang/String;Ljava/util/EnumSet;)Z

    move-result p1

    return p1
.end method

.method public c(Ljava/lang/String;)Les/ad0;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/common/SMBApiException;,
            Lcom/hierynomus/smbj/transport/TransportException;
        }
    .end annotation

    .line 1
    sget-object v0, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryInfoRequest$SMB2QueryInfoType;->SMB2_0_INFO_FILE:Lcom/hierynomus/smbj/smb2/messages/SMB2QueryInfoRequest$SMB2QueryInfoType;

    sget-object v1, Lcom/hierynomus/msfscc/FileInformationClass;->FileAllInformation:Lcom/hierynomus/msfscc/FileInformationClass;

    const/4 v2, 0x0

    invoke-direct {p0, p1, v0, v2, v1}, Les/sd0;->a(Ljava/lang/String;Lcom/hierynomus/smbj/smb2/messages/SMB2QueryInfoRequest$SMB2QueryInfoType;Ljava/util/EnumSet;Lcom/hierynomus/msfscc/FileInformationClass;)[B

    move-result-object p1

    .line 2
    :try_start_0
    new-instance v0, Lcom/hierynomus/protocol/commons/buffer/Buffer$b;

    sget-object v1, Lcom/hierynomus/protocol/commons/buffer/a;->a:Lcom/hierynomus/protocol/commons/buffer/a;

    invoke-direct {v0, p1, v1}, Lcom/hierynomus/protocol/commons/buffer/Buffer$b;-><init>([BLcom/hierynomus/protocol/commons/buffer/a;)V

    invoke-static {v0}, Les/bd0;->a(Lcom/hierynomus/protocol/commons/buffer/Buffer$b;)Les/ad0;

    move-result-object p1
    :try_end_0
    .catch Lcom/hierynomus/protocol/commons/buffer/Buffer$BufferException; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    move-exception p1

    .line 3
    new-instance v0, Lcom/hierynomus/smbj/transport/TransportException;

    invoke-direct {v0, p1}, Lcom/hierynomus/smbj/transport/TransportException;-><init>(Ljava/lang/Throwable;)V

    throw v0
.end method

.method public d(Ljava/lang/String;)Ljava/util/List;
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List<",
            "Les/ad0;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/common/SMBApiException;,
            Lcom/hierynomus/smbj/transport/TransportException;
        }
    .end annotation

    .line 1
    sget-object v0, Lcom/hierynomus/msdtyp/AccessMask;->GENERIC_READ:Lcom/hierynomus/msdtyp/AccessMask;

    .line 2
    invoke-static {v0}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v0

    sget-object v1, Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;->FILE_SHARE_DELETE:Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;

    sget-object v2, Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;->FILE_SHARE_WRITE:Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;

    sget-object v3, Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;->FILE_SHARE_READ:Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;

    .line 3
    invoke-static {v1, v2, v3}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;Ljava/lang/Enum;Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v1

    sget-object v2, Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;->FILE_OPEN:Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;

    .line 4
    invoke-virtual {p0, p1, v0, v1, v2}, Les/sd0;->a(Ljava/lang/String;Ljava/util/EnumSet;Ljava/util/EnumSet;Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;)Les/rd0;

    move-result-object p1

    .line 5
    :try_start_0
    invoke-virtual {p1}, Les/rd0;->d()Ljava/util/List;

    move-result-object v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz p1, :cond_0

    .line 6
    invoke-virtual {p1}, Les/rd0;->b()V

    :cond_0
    return-object v0

    :catchall_0
    move-exception v0

    if-eqz p1, :cond_1

    invoke-virtual {p1}, Les/rd0;->b()V

    .line 7
    :cond_1
    throw v0
.end method

.method public e(Ljava/lang/String;)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/transport/TransportException;,
            Lcom/hierynomus/smbj/common/SMBApiException;
        }
    .end annotation

    .line 1
    sget-object v0, Lcom/hierynomus/msdtyp/AccessMask;->FILE_LIST_DIRECTORY:Lcom/hierynomus/msdtyp/AccessMask;

    sget-object v1, Lcom/hierynomus/msdtyp/AccessMask;->FILE_ADD_SUBDIRECTORY:Lcom/hierynomus/msdtyp/AccessMask;

    .line 2
    invoke-static {v0, v1}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v0

    sget-object v1, Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;->FILE_SHARE_DELETE:Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;

    sget-object v2, Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;->FILE_SHARE_WRITE:Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;

    sget-object v3, Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;->FILE_SHARE_READ:Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;

    .line 3
    invoke-static {v1, v2, v3}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;Ljava/lang/Enum;Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v1

    sget-object v2, Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;->FILE_CREATE:Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;

    .line 4
    invoke-virtual {p0, p1, v0, v1, v2}, Les/sd0;->a(Ljava/lang/String;Ljava/util/EnumSet;Ljava/util/EnumSet;Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;)Les/rd0;

    move-result-object p1

    .line 5
    invoke-virtual {p1}, Les/rd0;->a()V

    return-void
.end method

.method public f(Ljava/lang/String;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/transport/TransportException;,
            Lcom/hierynomus/smbj/common/SMBApiException;
        }
    .end annotation

    .line 1
    sget-object v0, Lcom/hierynomus/msdtyp/AccessMask;->GENERIC_ALL:Lcom/hierynomus/msdtyp/AccessMask;

    .line 2
    invoke-static {v0}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v0

    sget-object v1, Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;->FILE_CREATE:Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;

    .line 3
    invoke-virtual {p0, p1, v0, v1}, Les/sd0;->a(Ljava/lang/String;Ljava/util/EnumSet;Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;)Les/td0;

    move-result-object p1

    .line 4
    invoke-virtual {p1}, Les/td0;->a()V

    return-void
.end method

.method public g(Ljava/lang/String;)V
    .locals 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/transport/TransportException;,
            Lcom/hierynomus/smbj/common/SMBApiException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/wd0;->a:Les/xd0;

    sget-object v1, Lcom/hierynomus/msdtyp/AccessMask;->DELETE:Lcom/hierynomus/msdtyp/AccessMask;

    .line 2
    invoke-virtual {v1}, Lcom/hierynomus/msdtyp/AccessMask;->getValue()J

    move-result-wide v2

    sget-object v6, Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;->FILE_OPEN:Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;

    sget-object v1, Lcom/hierynomus/smbj/smb2/SMB2CreateOptions;->FILE_NON_DIRECTORY_FILE:Lcom/hierynomus/smbj/smb2/SMB2CreateOptions;

    .line 3
    invoke-static {v1}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v7

    const/4 v4, 0x0

    const/4 v5, 0x0

    move-object v1, p1

    .line 4
    invoke-static/range {v0 .. v7}, Les/wd0;->a(Les/xd0;Ljava/lang/String;JLjava/util/EnumSet;Ljava/util/EnumSet;Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;Ljava/util/EnumSet;)Lcom/hierynomus/smbj/smb2/messages/b;

    move-result-object v0

    .line 5
    invoke-direct {p0, p1, v0}, Les/sd0;->a(Ljava/lang/String;Lcom/hierynomus/smbj/smb2/messages/b;)V

    return-void
.end method
